import http from '@/utils/request'
import { TopCategory } from './category.types'
// ❓ 这里直接导出会不会更方便一些呢??????
// export * from './category.types'
/**
 * 一级类目-PC
 * @param id 一级类目ID
 * @returns {Promise} axios Promise
 */
export const findTopCategory = (id: string) => {
  return http<TopCategory>('/category', 'get', { id: id })
}
